# -*- coding: utf-8 -*-
import string
# 跨文件夹引用文件要使用sys 类
# import sys
# sys.path.append('..')
# from config import conf
# arr = [1,23,4,45]
# print(len(arr))
# del arr[:]
# print(len(arr))

#
# ts = '788,8787'
#
#
# dfd = '$14.67'
# print(dfd[0:1])
#
# print(dfd.replace(dfd[0:1], ''))
#
# str = '14.00'
# print(float(str))
import re
# str = 'span>#8 in Health & Household (See'
# # result = re.findall(''"(.*)(See.*',df)
# # df.match(/\#(\S *)(See/);
# result = str.match(/span(\S*)See/)
# # result = re.findall(/span(\S*)(See/, str)
# print(result)


# str='创刊：;1981;类别：;工程科技I;周期：;双月刊;发行：;北京;语言：;中文 ;起订时间：;曾用名：;膜分离科学与技术;出版社：;公司类;邮编：;100029;主编：;李守荣;邮发：;54-40;库存：;200'
# pattern = re.compile ('发行：;(.*);语言：')
# pub_place = pattern.findall (str)
# print(pub_place)


str='#24 in Baby (<a href="/gp/bestsellers/baby-products/ref=pd_zg_ts_baby-products">See Top 100 in Baby</a>)'
pattern = re.compile ('#(.*)\(<a href="/gp/bests')
pub_place = pattern.findall(str)
print(pub_place)


print('thirdUrl==  '+ 'str(ind)' +'=    '+ 'third_namelist[ind]' +'===secondUrl=   ' + 'str(index)' + '=  ' + 'second_namelist[index]')

